package com.atguigu._2facade.my;

public class Client {
    private Camera camera1, camera2;
    private Light light1, light2, light3;
    private Sensor sensor;
    private Alarm alarm;

    public Client() {
        camera1 = new Camera();
        camera2 = new Camera();
        light1 = new Light();
        light2 = new Light();
        light3 = new Light();
        sensor = new Sensor();
        alarm = new Alarm();
    }

    public static void main(String[] args) {
        Client client = new Client();
        client.getCamera1().TurnOn();
        client.getCamera2().TurnOn();
        client.getLight1().TurnOn();
        client.getLight2().TurnOn();
        client.getLight3().TurnOn();
        client.getSensor().Activate();
        client.getAlarm().Activate();
    }


    public Camera getCamera1() {
        return camera1;
    }

    public void setCamera1(Camera camera1) {
        this.camera1 = camera1;
    }

    public Camera getCamera2() {
        return camera2;
    }

    public void setCamera2(Camera camera2) {
        this.camera2 = camera2;
    }

    public Light getLight1() {
        return light1;
    }

    public void setLight1(Light light1) {
        this.light1 = light1;
    }

    public Light getLight2() {
        return light2;
    }

    public void setLight2(Light light2) {
        this.light2 = light2;
    }

    public Light getLight3() {
        return light3;
    }

    public void setLight3(Light light3) {
        this.light3 = light3;
    }

    public Sensor getSensor() {
        return sensor;
    }

    public void setSensor(Sensor sensor) {
        this.sensor = sensor;
    }

    public Alarm getAlarm() {
        return alarm;
    }

    public void setAlarm(Alarm alarm) {
        this.alarm = alarm;
    }
}